package com.yuexun.dhdoctor.module.meetingMaterial.api;

import com.yuexun.dhdoctor.module.email.bean.MailFileBean;
import com.yuexun.dhdoctor.module.meetingMaterial.bean.MeetingMaterialDetailBean;
import com.yuexun.dhdoctor.module.meetingMaterial.bean.MeetingMaterialFeedBack;
import com.yuexun.dhdoctor.module.meetingMaterial.bean.MeetingMaterialListBean;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import retrofit.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2016/11/15.
 */
public interface MeetingMaterialApi {

    //展示会议材料列表

    @POST("inquireMeetingMaterialList.json?")
    Observable<MeetingMaterialListBean> inquireMeetingMaterialList(@Query("sessionUuid") String sessionUuid,
                                                                   @Query("title") String title, @Query("startDate") String startDate, @Query("endDate") String endDate
            , @Query("pageSize") int pageSize, @Query("pageIndex") int pageIndex, @Query("adminFlag") boolean adminFlag);

    //展示详细会议材料
    @POST("inquireMeetingMaterialDetail.json?")
    Observable<MeetingMaterialDetailBean> inquireMeetingMaterialDetail(@Query("accountId") String sessionUuid,
                                                                       @Query("meetingMaterialId") Long meetingMaterialId);

//    http://61.175.221.118:8080/tzgs/api/v1.0/inquireFile.json?sessionUuid=e013bac1d5884a42b879740aaace1faa&fileUuid=fe8cd89c44154befa334b8dae06f5712
    @POST("inquireFile.json?")
    Observable<MailFileBean> inquireFile(@Query("sessionUuid") String sessionUuid,
                                         @Query("fileUuid") String fileUuid);

    @FormUrlEncoded
    @POST("saveMeetingMaterialFeedBack.json?")
    Observable<MeetingMaterialFeedBack> meetingMaterialFeedBack(@FieldMap Map<String, String> praise);


}
